package com.cakebackoffice.clientsoap.contract;


import org.ksoap2.serialization.SoapObject;

public class LocalPriceHT extends ContractObject {
    public int storeId;
    public float value;

    public LocalPriceHT() {
    }

    public LocalPriceHT(com.cakebackoffice.Model.LocalPriceHT localPriceHT) {
        if (localPriceHT.getStore() != null)
            storeId = Integer.valueOf(localPriceHT.getStore().getRemoteID().toString());
        value = localPriceHT.getValue();
    }

    @Override
    public void fill(SoapObject soapObject) {
        this.storeId = Integer.parseInt(soapObject.getPropertySafelyAsString("storeId"));
        this.value = Float.parseFloat(soapObject.getPropertySafelyAsString("value"));
    }
}
